package me.moscrop.RootCommand.utilities;

import java.io.File;

import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.plugin.Plugin;
import org.bukkit.util.config.Configuration;



public class Config {
	public static Plugin plugin;
	public Configuration config;
	
    public Config(Plugin instance){
    	Config.plugin = instance;
    }

	public void initialize (String pluginDir) {
		
		config = plugin.getConfiguration();
		
		for (World world : Bukkit.getServer().getWorlds()) {
			
			config = new Configuration(new File(plugin.getDataFolder().getPath() + "/config.yml"));
							
			String worldDir = pluginDir + File.separator + world.getName();
			//new File(worldDir).mkdir();
			
			config.setProperty("Worlds." + worldDir, "test");
		
		}
		
		
		
		
		config.save();
	}
	
	public String getVar (World world, String Name) {
		String value = null;
				
		return value;
	}
	
	
	
}
